#ifndef ROLE_H
#define ROLE_H

#include <QObject>

class Role : public QObject
{
    Q_OBJECT
public:
    explicit Role(QObject *parent = 0);    
    void attacked(QString element,int hitRate);
    void moDaned(int nextID);
    void cure(int cross,int harmPoint,bool type);
    void drop(int howMany);
    void normal();
    void makeConnection();
    void attackAction();
    void magicAction();
    void attackOrMagic();
signals:
    void sendCommand(QString);

public slots:
    void decipher(QString command);
    void onOkClicked();
    void onCancelClicked();
    void cardAnalyse();
    void exchangeCards();    
    void buy();
    void synthetize();
    void extract();
protected:
    int myID;
    int state;
    int sourcePlayerID;
    int moDanNextID;
    int nextCounterClockwise;
    bool isMyTurn;
};



#endif // ROLE_H
